Intel VTD: Ignore USB RMRR for HVM guest
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 19 Mar 2008 10:22:49 +0000 (10:22 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 19 Mar 2008 10:22:49 +0000 (10:22 +0000)
commitfd4c279fb111f3be750f36b63851f369c4c82eee
tree2f56f63dd87d38c8a0297098eaa274d252662c05
parent2795200267e1eee9cca5dbefef608d1455894eb4
Intel VTD: Ignore USB RMRR for HVM guest

USB controller RMRR (0xed000 - 0xeffff) conflicts with HVM guest bios
region. Setting identity mapping for it will cover the guest bios
region in p2m table. This causes system crash.

As VT-d spec says, USB controller RMRR is used in case of DMA
performed by a USB controller under BIOS SMM control for legacy
keyboard emulation. Whereas, current guest BIOS doesn't support
emulating stardand Keyboard/mouse, and it also doesn't support SMM
mode. Actually it is no chance to use USB controller RMRR now.

This patch ignores the USB controller RMRR for HVM guest.

Signed-off-by: Weidong Han <weidong.han@intel.com>
xen/drivers/passthrough/vtd/dmar.h
xen/drivers/passthrough/vtd/iommu.c
xen/drivers/passthrough/vtd/utils.c